package org.lex.jdbc.url.persist;

import java.io.IOException;
import java.util.List;

import org.lex.jdbc.url.JdbcUrlTemplate;

public interface IJdbcTemplateDao {
	public List<JdbcUrlTemplate> getSystemTemplates() throws IOException;

	public List<JdbcUrlTemplate> getUserTemplates() throws IOException;

	public JdbcUrlTemplate getTemplateByName(String templateName)
			throws IOException;

	public List<JdbcUrlTemplate> getTemplatesByDriver(String driverClass)
			throws IOException;

	public void saveTemplate(JdbcUrlTemplate template) throws IOException;

	public void updateTemplate(JdbcUrlTemplate oldTemplate,
			JdbcUrlTemplate newTemplate) throws IOException;

	public void deleteTemplate(JdbcUrlTemplate template) throws IOException;

	public boolean contains(String templateName) throws IOException;
}
